package com.woniuxy.orderserver.service;

import com.woniuxy.common.dto.SkuDto;
import com.woniuxy.common.dto.UserDto;
import com.woniuxy.orderserver.pojo.FinanceOrder;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author 76169
* @description 针对表【finance_order】的数据库操作Service
* @createDate 2024-12-17 19:03:25
*/
public interface FinanceOrderService extends IService<FinanceOrder> {

    /**
     * 添加购物车
     * @param skuId
     * @return
     */
    String addCart(Integer skuId);

    String addOrder(Integer skuId);

    void addOrder(UserDto user, Long orderId, SkuDto sku);

    void rollbackOrder(String orderId);


}
